/*
 * XML Type:  XCriteriaSchema
 * Namespace: http://www.seedwill.com/xul/criteria
 * Java type: com.seedwill.xul.criteria.XCriteriaSchema
 *
 * Automatically generated - do not modify.
 */
package com.seedwill.xul.criteria.impl;
/**
 * An XML XCriteriaSchema(@http://www.seedwill.com/xul/criteria).
 *
 * This is a complex type.
 */
public class XCriteriaSchemaImpl extends com.seedwill.xul.core.impl.XIdentifiedImpl implements com.seedwill.xul.criteria.XCriteriaSchema
{
    private static final long serialVersionUID = 1L;
    
    public XCriteriaSchemaImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName SCHEMACODE$0 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "schemaCode");
    private static final javax.xml.namespace.QName SCHEMANAME$2 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "schemaName");
    private static final javax.xml.namespace.QName PARENTSCHEMACODE$4 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "parentSchemaCode");
    private static final javax.xml.namespace.QName DEFAULTVALUE$6 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "defaultValue");
    private static final javax.xml.namespace.QName DATATYPE$8 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "dataType");
    private static final javax.xml.namespace.QName REGFERDATATYPE$10 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "regferDataType");
    private static final javax.xml.namespace.QName SCHEMAPRECISION$12 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "schemaPrecision");
    private static final javax.xml.namespace.QName SCHEMASCALE$14 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "schemaScale");
    private static final javax.xml.namespace.QName SCHEMAALIAS$16 = 
        new javax.xml.namespace.QName("http://www.seedwill.com/xul/criteria", "schemaAlias");
    private static final javax.xml.namespace.QName INDEX$18 = 
        new javax.xml.namespace.QName("", "index");
    
    
    /**
     * Gets the "schemaCode" element
     */
    public java.lang.String getSchemaCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMACODE$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaCode" element
     */
    public org.apache.xmlbeans.XmlString xgetSchemaCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMACODE$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "schemaCode" element
     */
    public void setSchemaCode(java.lang.String schemaCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMACODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMACODE$0);
            }
            target.setStringValue(schemaCode);
        }
    }
    
    /**
     * Sets (as xml) the "schemaCode" element
     */
    public void xsetSchemaCode(org.apache.xmlbeans.XmlString schemaCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMACODE$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SCHEMACODE$0);
            }
            target.set(schemaCode);
        }
    }
    
    /**
     * Gets the "schemaName" element
     */
    public java.lang.String getSchemaName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMANAME$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaName" element
     */
    public org.apache.xmlbeans.XmlString xgetSchemaName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMANAME$2, 0);
            return target;
        }
    }
    
    /**
     * True if has "schemaName" element
     */
    public boolean isSetSchemaName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMANAME$2) != 0;
        }
    }
    
    /**
     * Sets the "schemaName" element
     */
    public void setSchemaName(java.lang.String schemaName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMANAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMANAME$2);
            }
            target.setStringValue(schemaName);
        }
    }
    
    /**
     * Sets (as xml) the "schemaName" element
     */
    public void xsetSchemaName(org.apache.xmlbeans.XmlString schemaName)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMANAME$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SCHEMANAME$2);
            }
            target.set(schemaName);
        }
    }
    
    /**
     * Unsets the "schemaName" element
     */
    public void unsetSchemaName()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMANAME$2, 0);
        }
    }
    
    /**
     * Gets the "parentSchemaCode" element
     */
    public java.lang.String getParentSchemaCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARENTSCHEMACODE$4, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "parentSchemaCode" element
     */
    public org.apache.xmlbeans.XmlString xgetParentSchemaCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PARENTSCHEMACODE$4, 0);
            return target;
        }
    }
    
    /**
     * True if has "parentSchemaCode" element
     */
    public boolean isSetParentSchemaCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(PARENTSCHEMACODE$4) != 0;
        }
    }
    
    /**
     * Sets the "parentSchemaCode" element
     */
    public void setParentSchemaCode(java.lang.String parentSchemaCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(PARENTSCHEMACODE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(PARENTSCHEMACODE$4);
            }
            target.setStringValue(parentSchemaCode);
        }
    }
    
    /**
     * Sets (as xml) the "parentSchemaCode" element
     */
    public void xsetParentSchemaCode(org.apache.xmlbeans.XmlString parentSchemaCode)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(PARENTSCHEMACODE$4, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(PARENTSCHEMACODE$4);
            }
            target.set(parentSchemaCode);
        }
    }
    
    /**
     * Unsets the "parentSchemaCode" element
     */
    public void unsetParentSchemaCode()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(PARENTSCHEMACODE$4, 0);
        }
    }
    
    /**
     * Gets the "defaultValue" element
     */
    public org.apache.xmlbeans.XmlAnySimpleType getDefaultValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_element_user(DEFAULTVALUE$6, 0);
            if (target == null)
            {
                return null;
            }
            return target;
        }
    }
    
    /**
     * True if has "defaultValue" element
     */
    public boolean isSetDefaultValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(DEFAULTVALUE$6) != 0;
        }
    }
    
    /**
     * Sets the "defaultValue" element
     */
    public void setDefaultValue(org.apache.xmlbeans.XmlAnySimpleType defaultValue)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().find_element_user(DEFAULTVALUE$6, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_element_user(DEFAULTVALUE$6);
            }
            target.set(defaultValue);
        }
    }
    
    /**
     * Appends and returns a new empty "defaultValue" element
     */
    public org.apache.xmlbeans.XmlAnySimpleType addNewDefaultValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlAnySimpleType target = null;
            target = (org.apache.xmlbeans.XmlAnySimpleType)get_store().add_element_user(DEFAULTVALUE$6);
            return target;
        }
    }
    
    /**
     * Unsets the "defaultValue" element
     */
    public void unsetDefaultValue()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(DEFAULTVALUE$6, 0);
        }
    }
    
    /**
     * Gets the "dataType" element
     */
    public com.seedwill.xul.criteria.XCriteriaDataType.Enum getDataType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATATYPE$8, 0);
            if (target == null)
            {
                return null;
            }
            return (com.seedwill.xul.criteria.XCriteriaDataType.Enum)target.getEnumValue();
        }
    }
    
    /**
     * Gets (as xml) the "dataType" element
     */
    public com.seedwill.xul.criteria.XCriteriaDataType xgetDataType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.criteria.XCriteriaDataType target = null;
            target = (com.seedwill.xul.criteria.XCriteriaDataType)get_store().find_element_user(DATATYPE$8, 0);
            return target;
        }
    }
    
    /**
     * Sets the "dataType" element
     */
    public void setDataType(com.seedwill.xul.criteria.XCriteriaDataType.Enum dataType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(DATATYPE$8, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(DATATYPE$8);
            }
            target.setEnumValue(dataType);
        }
    }
    
    /**
     * Sets (as xml) the "dataType" element
     */
    public void xsetDataType(com.seedwill.xul.criteria.XCriteriaDataType dataType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            com.seedwill.xul.criteria.XCriteriaDataType target = null;
            target = (com.seedwill.xul.criteria.XCriteriaDataType)get_store().find_element_user(DATATYPE$8, 0);
            if (target == null)
            {
                target = (com.seedwill.xul.criteria.XCriteriaDataType)get_store().add_element_user(DATATYPE$8);
            }
            target.set(dataType);
        }
    }
    
    /**
     * Gets the "regferDataType" element
     */
    public java.lang.String getRegferDataType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REGFERDATATYPE$10, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "regferDataType" element
     */
    public org.apache.xmlbeans.XmlString xgetRegferDataType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REGFERDATATYPE$10, 0);
            return target;
        }
    }
    
    /**
     * True if has "regferDataType" element
     */
    public boolean isSetRegferDataType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(REGFERDATATYPE$10) != 0;
        }
    }
    
    /**
     * Sets the "regferDataType" element
     */
    public void setRegferDataType(java.lang.String regferDataType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(REGFERDATATYPE$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(REGFERDATATYPE$10);
            }
            target.setStringValue(regferDataType);
        }
    }
    
    /**
     * Sets (as xml) the "regferDataType" element
     */
    public void xsetRegferDataType(org.apache.xmlbeans.XmlString regferDataType)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(REGFERDATATYPE$10, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(REGFERDATATYPE$10);
            }
            target.set(regferDataType);
        }
    }
    
    /**
     * Unsets the "regferDataType" element
     */
    public void unsetRegferDataType()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(REGFERDATATYPE$10, 0);
        }
    }
    
    /**
     * Gets the "schemaPrecision" element
     */
    public int getSchemaPrecision()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMAPRECISION$12, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaPrecision" element
     */
    public org.apache.xmlbeans.XmlInt xgetSchemaPrecision()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(SCHEMAPRECISION$12, 0);
            return target;
        }
    }
    
    /**
     * True if has "schemaPrecision" element
     */
    public boolean isSetSchemaPrecision()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMAPRECISION$12) != 0;
        }
    }
    
    /**
     * Sets the "schemaPrecision" element
     */
    public void setSchemaPrecision(int schemaPrecision)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMAPRECISION$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMAPRECISION$12);
            }
            target.setIntValue(schemaPrecision);
        }
    }
    
    /**
     * Sets (as xml) the "schemaPrecision" element
     */
    public void xsetSchemaPrecision(org.apache.xmlbeans.XmlInt schemaPrecision)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(SCHEMAPRECISION$12, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(SCHEMAPRECISION$12);
            }
            target.set(schemaPrecision);
        }
    }
    
    /**
     * Unsets the "schemaPrecision" element
     */
    public void unsetSchemaPrecision()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMAPRECISION$12, 0);
        }
    }
    
    /**
     * Gets the "schemaScale" element
     */
    public int getSchemaScale()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMASCALE$14, 0);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaScale" element
     */
    public org.apache.xmlbeans.XmlInt xgetSchemaScale()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(SCHEMASCALE$14, 0);
            return target;
        }
    }
    
    /**
     * True if has "schemaScale" element
     */
    public boolean isSetSchemaScale()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMASCALE$14) != 0;
        }
    }
    
    /**
     * Sets the "schemaScale" element
     */
    public void setSchemaScale(int schemaScale)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMASCALE$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMASCALE$14);
            }
            target.setIntValue(schemaScale);
        }
    }
    
    /**
     * Sets (as xml) the "schemaScale" element
     */
    public void xsetSchemaScale(org.apache.xmlbeans.XmlInt schemaScale)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_element_user(SCHEMASCALE$14, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_element_user(SCHEMASCALE$14);
            }
            target.set(schemaScale);
        }
    }
    
    /**
     * Unsets the "schemaScale" element
     */
    public void unsetSchemaScale()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMASCALE$14, 0);
        }
    }
    
    /**
     * Gets the "schemaAlias" element
     */
    public java.lang.String getSchemaAlias()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMAALIAS$16, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "schemaAlias" element
     */
    public org.apache.xmlbeans.XmlString xgetSchemaAlias()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMAALIAS$16, 0);
            return target;
        }
    }
    
    /**
     * True if has "schemaAlias" element
     */
    public boolean isSetSchemaAlias()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().count_elements(SCHEMAALIAS$16) != 0;
        }
    }
    
    /**
     * Sets the "schemaAlias" element
     */
    public void setSchemaAlias(java.lang.String schemaAlias)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(SCHEMAALIAS$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(SCHEMAALIAS$16);
            }
            target.setStringValue(schemaAlias);
        }
    }
    
    /**
     * Sets (as xml) the "schemaAlias" element
     */
    public void xsetSchemaAlias(org.apache.xmlbeans.XmlString schemaAlias)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlString target = null;
            target = (org.apache.xmlbeans.XmlString)get_store().find_element_user(SCHEMAALIAS$16, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlString)get_store().add_element_user(SCHEMAALIAS$16);
            }
            target.set(schemaAlias);
        }
    }
    
    /**
     * Unsets the "schemaAlias" element
     */
    public void unsetSchemaAlias()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_element(SCHEMAALIAS$16, 0);
        }
    }
    
    /**
     * Gets the "index" attribute
     */
    public int getIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INDEX$18);
            if (target == null)
            {
                return 0;
            }
            return target.getIntValue();
        }
    }
    
    /**
     * Gets (as xml) the "index" attribute
     */
    public org.apache.xmlbeans.XmlInt xgetIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(INDEX$18);
            return target;
        }
    }
    
    /**
     * True if has "index" attribute
     */
    public boolean isSetIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            return get_store().find_attribute_user(INDEX$18) != null;
        }
    }
    
    /**
     * Sets the "index" attribute
     */
    public void setIndex(int index)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_attribute_user(INDEX$18);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_attribute_user(INDEX$18);
            }
            target.setIntValue(index);
        }
    }
    
    /**
     * Sets (as xml) the "index" attribute
     */
    public void xsetIndex(org.apache.xmlbeans.XmlInt index)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.XmlInt target = null;
            target = (org.apache.xmlbeans.XmlInt)get_store().find_attribute_user(INDEX$18);
            if (target == null)
            {
                target = (org.apache.xmlbeans.XmlInt)get_store().add_attribute_user(INDEX$18);
            }
            target.set(index);
        }
    }
    
    /**
     * Unsets the "index" attribute
     */
    public void unsetIndex()
    {
        synchronized (monitor())
        {
            check_orphaned();
            get_store().remove_attribute(INDEX$18);
        }
    }
}
